package com.eunion.web.cms.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 
 *
 */
@Entity
@Table(name = "t_cert_post")
@NamedQuery(name = "TCertPost.findAll", query = "SELECT t FROM TCertPost t")
public class TCertPost implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private Integer userid;

	private String usercode;

	private String trackingnum;

	@Transient
	private String username;

	private Integer expresscommpany;

	private Integer status;

	private Date createtime;

	private Date updatetime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getTrackingnum() {
		return trackingnum;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setTrackingnum(String trackingnum) {
		this.trackingnum = trackingnum;
	}

	public Integer getExpresscommpany() {
		return expresscommpany;
	}

	public void setExpresscommpany(Integer expresscommpany) {
		this.expresscommpany = expresscommpany;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public TCertPost(Integer id, Integer userid, String usercode, String trackingnum, String username, Integer expresscommpany, Integer status, Date createtime, Date updatetime) {
		super();
		this.id = id;
		this.userid = userid;
		this.usercode = usercode;
		this.trackingnum = trackingnum;
		this.username = username;
		this.expresscommpany = expresscommpany;
		this.status = status;
		this.createtime = createtime;
		this.updatetime = updatetime;
	}

	@Override
	public String toString() {
		return "TCertPost [id=" + id + ", userid=" + userid + ", usercode=" + usercode + ", trackingnum=" + trackingnum + ", username=" + username + ", expresscommpany=" + expresscommpany
		       + ", status=" + status + ", createtime=" + createtime + ", updatetime=" + updatetime + "]";
	}

	public String getUsercode() {
		return usercode;
	}

	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}

	public TCertPost() {
		super();
	}

}
